import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import VideoPlayer from '@/components/VideoPlayer'
import css from './postLive.module.scss'
export default class SpacePostShortVideo extends PureComponent {
    static propTypes = {
        view: PropTypes.number,
        duration: PropTypes.number,
        videoUrl: PropTypes.string,
        poster: PropTypes.string
    }

    render() {
        const {  duration, videoUrl, poster } = this.props
        return (
            <div className={css["wrap"]}>
                <VideoPlayer url={videoUrl} poster={poster} duration={duration} />
            </div>
        )
    }
}
